home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / src / vgatext.inc < prev    next >
Encoding:
Text File  |  1997-01-16  |  5.5 KB  |  185 lines

  1. ;*    VGATEXT.INC
  2. ;*
  3. ;* VGA text output routines for MIDAS Sound System
  4. ;*
  5. ;* $Id: vgatext.inc,v 1.3 1997/01/16 18:41:59 pekangas Exp $
  6. ;*
  7. ;* Copyright 1996,1997 Housemarque Inc.
  8. ;*
  9. ;* This file is part of the MIDAS Sound System, and may only be
  10. ;* used, modified and distributed under the terms of the MIDAS
  11. ;* Sound System license, LICENSE.TXT. By continuing to use,
  12. ;* modify or distribute this file you indicate that you have
  13. ;* read the license and understand and accept it fully.
  14. ;*
  15.  
  16.  
  17.  
  18.  
  19. ;/***************************************************************************\
  20. ;*
  21. ;* Function:    void vgaSetWidth(int width);
  22. ;*
  23. ;* Description: Sets the screen width used by text output routines
  24. ;*
  25. ;* Input:       int width               screen width in characters
  26. ;*
  27. ;\***************************************************************************/
  28.  
  29. GLOBAL  vgaSetWidth : _funct
  30.  
  31.  
  32.  
  33.  
  34. ;/***************************************************************************\
  35. ;*
  36. ;* Function:     void vgaWriteText(int x, int y, char *txt);
  37. ;*
  38. ;* Description:  Writes text on the screen
  39. ;*
  40. ;* Input:     int x             X coordinate of string (up-left
  41. ;*                     corner is (1,1))
  42. ;*         int y             Y coordinate
  43. ;*         char *txt         pointer to null-terminated text
  44. ;*                     string, which may contain also the
  45. ;*                     following special characters:
  46. ;*                         \xFF - next char is attribute
  47. ;*                         \x7F - next char is RLE count for
  48. ;*                                               the character following it
  49. ;*
  50. ;\***************************************************************************/
  51.  
  52. GLOBAL  LANG vgaWriteText : _funct
  53.  
  54.  
  55.  
  56.  
  57. ;/***************************************************************************\
  58. ;*
  59. ;* Function:     void vgaWriteStr(int x, int y, char *str, char attr);
  60. ;*
  61. ;* Description:  Writes a string on the screen
  62. ;*
  63. ;* Input:     int x             X coordinate of the string
  64. ;*         int y             Y coordinate
  65. ;*         char *str         pointer to a ASCIIZ string
  66. ;*         char attr         attribute for the string
  67. ;*         int txtlen         number of characters to be printed on
  68. ;*                     screen - padded with spaces
  69. ;*
  70. ;\***************************************************************************/
  71.  
  72. GLOBAL  LANG vgaWriteStr : _funct
  73.  
  74.  
  75.  
  76. ;/***************************************************************************\
  77. ;*
  78. ;* Function:     void vgaWriteByte(int x, int y, uchar byte, char attr);
  79. ;*
  80. ;* Description:  Writes a hex byte on the screen
  81. ;*
  82. ;* Input:     int x             X coordinate
  83. ;*         int y             Y coordinate
  84. ;*         uchar byte         byte to be written
  85. ;*         char attr         attribute for the byte
  86. ;*
  87. ;\***************************************************************************/
  88.  
  89. GLOBAL  LANG vgaWriteByte : _funct
  90.  
  91.  
  92.  
  93. ;/***************************************************************************\
  94. ;*
  95. ;* Function:     void vgaFillRect(int x1, int y1, int x2, int y2, char attr);
  96. ;*
  97. ;* Description:  Draws a filled rectangle on the screen
  98. ;*
  99. ;* Input:        int x1                  X-coordinate of upper left corner
  100. ;*               int y1                  Y-coordinate of upper left corner
  101. ;*               int x2                  X-coordinate of lower left corner
  102. ;*               int y2                  Y-coordinate of lower left corner
  103. ;*               char attr               rectangle attribute
  104. ;*
  105. ;\***************************************************************************/
  106.  
  107. GLOBAL  LANG vgaFillRect : _funct
  108.  
  109.  
  110.  
  111. ;/***************************************************************************\
  112. ;*
  113. ;* Function:     void vgaDrawChar(int x, int y, char ch, char attr);
  114. ;*
  115. ;* Description:  Draws a single character on the screen
  116. ;*
  117. ;* Input:        int x                   character X-coordinate
  118. ;*               int y                   character Y-coordinate
  119. ;*               char ch                 character
  120. ;*               char attr               character attribute
  121. ;*
  122. ;\***************************************************************************/
  123.  
  124. GLOBAL  LANG vgaDrawChar : _funct
  125.  
  126.  
  127.  
  128.  
  129. ;/***************************************************************************\
  130. ;*
  131. ;* Function:     void vgaSetMode(int mode)
  132. ;*
  133. ;* Description:  Sets a VGA BIOS display mode
  134. ;*
  135. ;* Input:        int mode                BIOS mode number
  136. ;*
  137. ;\***************************************************************************/
  138.  
  139. GLOBAL  LANG vgaSetMode : _funct
  140.  
  141.  
  142.  
  143. ;/***************************************************************************\
  144. ;*
  145. ;* Function:     void vgaMoveCursor(int x, int y);
  146. ;*
  147. ;* Description:  Moves the text mode cursor to a new location
  148. ;*
  149. ;* Input:        int x                   cursor X-coordinate
  150. ;*               int y                   cursor Y-coordinate
  151. ;*
  152. ;\***************************************************************************/
  153.  
  154. GLOBAL  LANG vgaMoveCursor : _funct
  155.  
  156.  
  157.  
  158.  
  159. ;/***************************************************************************\
  160. ;*
  161. ;* Function:     void vgaDrawChars(int x, int y, char ch, char attr, int num);
  162. ;*
  163. ;* Description:  Draws many charactersr on the screen
  164. ;*
  165. ;* Input:        int x                   character X-coordinate
  166. ;*               int y                   character Y-coordinate
  167. ;*               char ch                 character
  168. ;*               char attr               character attribute
  169. ;*               int num                 number characters to draw
  170. ;*
  171. ;\***************************************************************************/
  172.  
  173. GLOBAL  LANG vgaDrawChars : _funct
  174.  
  175.  
  176. ;* $Log: vgatext.inc,v $
  177. ;* Revision 1.3  1997/01/16 18:41:59  pekangas
  178. ;* Changed copyright messages to Housemarque
  179. ;*
  180. ;* Revision 1.2  1996/05/30 22:38:46  pekangas
  181. ;* no changes?
  182. ;*
  183. ;* Revision 1.1  1996/05/22 20:49:33  pekangas
  184. ;* Initial revision
  185. ;*